<!--样式-->
<link rel="stylesheet" href="__PUBLIC__/css/foodlist.css">
<!--样式-->

<include file='Public/position' />
<div>
    <div class='food_list_left_content clear'>
        <div class='food_list_left'>
            <h2 id='h2'><span class='glyphicon glyphicon-signal'></span> 最近热卖</h2>
            <div>
                <ul>
                    <foreach name='recenterHot' item='rh_v' key='rh_k'>
                        <li><img src="__PUBLIC__/images/number/<{$rh_k+1}>.jpg" alt=""><a href='__CONTROLLER__/foodDetail/food_id/<{$rh_v.goods_id}>'><{$rh_v.goods_name}></a></li>
                    </foreach>

                </ul>
            </div>
        </div>
        <div class='food_list_left '>
            <h2 id='h2'><span class='glyphicon glyphicon-time'></span> 最近浏览</h2>
            <div>
                <ul>
                    <notempty name='scanfData'>
                        <foreach name='scanfData' item='sd_v' key='sd_k'>
                            <li><img src="__PUBLIC__/images/number/<{$sd_k+1}>.jpg" alt=""><a href='__CONTROLLER__/foodDetail/food_id/<{$sd_v.goods_id}>'><{$sd_v.goods_name}></a></li>
                        </foreach>
                    </notempty>
                    <empty name='scanfData'>
                        <li>你暂时还没有浏览商品</li>
                    </empty>    
                </ul>
            </div>
        </div>
    </div>
     <div class='food_list_content'>
        <!--瀑布流-->
        <div id="food_container" class="food_container">
            <!--这里通过设置每个div不同的高度，来凸显布局的效果-->
            <foreach name="cookbookData" item="ckd_v">
                <div class='cookbook_item'>

                    <a href="__CONTROLLER__/cookbookDetail/cookbook_id/<{$ckd_v.cookbook_id}>"><img class='list_pic_show' src='<{$ckd_v.cookbook_photo}>' alt='<{$ckd_v.cookbook_name}>' title='<{$ckd_v.cookbook_name}>'></a>
                    <div class='food_info'>
                         <a href="__CONTROLLER__/cookbookDetail/cookbook_id/<{$ckd_v.cookbook_id}>"><span><{$ckd_v.cookbook_name}></span></a>
                        
                    </div>
                </div>
            </foreach>
        </div>
        <!--瀑布流-->

        <!--加载中-->
        <div id="loading" class="mamory-loading">
            <span class="loading" page_num=<{$cookbookPage}>>加载中，请稍后...</span>
        </div>
        <!--加载中-->
    </div>   
</div>


<script>
var url = {

        masonry_url : "__CONTROLLER__/cookbookGetMore",
        detail_url:"__CONTROLLER__/cookbookDetail/cookbook_id/"
}
</script>
